﻿<Window x:Class="HoloGestionnaire.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:HoloGestionnaire"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
    <Window.Resources>
        <local:HoloPenXDataSet x:Key="holoPenXDataSet"/>
        <CollectionViewSource x:Key="fichiersViewSource" Source="{Binding Fichiers, Source={StaticResource holoPenXDataSet}}"/>
    </Window.Resources>
    <Grid DataContext="{StaticResource fichiersViewSource}">
        <Button x:Name="button" Content="Afficher" HorizontalAlignment="Left" Margin="10,0,0,10" Width="75" Click="button_Click" Height="20" VerticalAlignment="Bottom"/>
        <DataGrid x:Name="dataGrid" Margin="10,10,10,35" ItemsSource="{Binding}" RowEditEnding="dataGrid_RowEditEnding" IsSynchronizedWithCurrentItem="True" IsReadOnly="True"/>
        <Button x:Name="button1" Content="Editer" HorizontalAlignment="Left" Margin="90,0,0,10" Width="75" Click="button1_Click" Height="20" VerticalAlignment="Bottom"/>
        <Button x:Name="button2" Content="Ajouter" HorizontalAlignment="Left" Margin="432,289,0,0" VerticalAlignment="Top" Width="75" Click="button2_Click"/>

    </Grid>
</Window>
